package org.vison.wonfu.framework.commons;

public class Constants {
    public static final String APP_ID = "wonfu.app.id";
    public static final String TRACE_ID_STR = "TRACE_ID";

    public static final String TRACE_ENDPOINT = "EndPoint";
    public static final String UNKNOWN_APPLICATION_NAME = "UNKNOWN_APPLICATION";
    public static final String DYNAMIC_LOG_BASE_KEY = "dynamic.base.log.key";

    public static final String DYNAMIC_LOG_LEVEL_KEY = "dynamic.level.log.key";

    public static final String GOVERNANCE_NAMESPACE = "wonfu.governance";
    public static final String APOLLO_LISTEN_NAMESPACES = "wonfu.apollo.listen.namespaces";


    public static final String GOVERNANCE_BEAN = "governanceConfigUtils";

    public static final String CONSUL_SERVICE_REGISTRY_BEAN = "consulServiceRegistry";

    public static final String RPC_CONTEXT_PREFIX = "x-wf-";

    public static final String CONSUL_HOST = "wonfu.consul-host";
    public static final String CONSUL_PORT = "wonfu.consul-port";
    public static final String HEALTH_CHECK_ENDPOINT = "wonfu.health-check-endpoint";
    public static final String HEALTH_CHECK_INTERVAL = "wonfu.health-check-interval";
    public static final String HEALTH_CHECK_TIMEOUT = "wonfu.health-check-timeout";

    public static String GRAY_VERSION_KEY = RPC_CONTEXT_PREFIX + "gray-version";

    public static String  CONFIG_KEY_SOA_PROVIDER_ENABLE = "wonfu.soa.provider.enable";
    public static final String CONFIG_KEY_EXPOSE_IP = "wonfu.soa.expose-ip";
    public static String  PROVIDER = "provider";
    public static String  CONSUMER = "consumer";

    public static final String ORBIT_DOMAIN  = "wonfu.orbit-domain";

    public static String appid;

    public static String getAppid() {
        return appid;
    }

    public static void setAppid(String appid) {
        Constants.appid = appid;
    }

}
